﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace MultiAnnotatedRegex.machine {
	class CharacterClassEdge<Tag> : Edge<Tag> {
		public string Class;

		public override bool Matches(string s) {
			var regex = new Regex(@"\p{" + Class + "}");
			return regex.IsMatch(s);
		}
	}
}
